<?php

namespace Gnway\Ticket\Rest\Response;

use Gnway\Ticket\Rest\Contracts\HttpResponseInterface;

class HttpResponseText implements HttpResponseInterface
{

  /**
   * @var string
   */
  private string $value;

  /**
   * @var array
   */
  private array $httpResponseHeaders;

  /**
   * @var int
   */
  private int $httpResponseCode;

  /**
   * HttpResponseText constructor.
   *
   * @param string $value
   * @param array  $httpResponseHeaders
   * @param int    $httpResponseCode
   */
  public function __construct(string $value, array $httpResponseHeaders = [], int $httpResponseCode = 200)
  {
    $this->value = $value;
    $this->httpResponseCode = $httpResponseCode;
    $this->httpResponseHeaders = $httpResponseHeaders;
  }

  public function getValue(): string
  {
    return $this->value;
  }

  public function getHttpResponseHeaders(): array
  {
    return $this->httpResponseHeaders;
  }

  public function getHttpResponseCode(): int
  {
    return $this->httpResponseCode;
  }
}